An animated Radar chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.common.effects.js"></script>
<script src="RGraph.radar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="400">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var labels = ['Mal', 'Barry', 'Gary','Dave','Paul'];
new RGraph.Radar({
id: 'cvs',
data: [
[4,8,5,2,3],
[9,5,6,3,5]
],
options: {
labels: labels,
tooltips: RGraph.arrayLinearize(labels, labels), // Effectively adds the two arrays together
clearto: 'white',
backgroundCirclesPoly: true,
backgroundCirclesSpacing: 30,
colors: ['rgba(255,0,0,0.25)','rgba(255,255,0,0.25)'],
axesColor: 'transparent',
highlights: true,
strokestyle: ['red','black'],
textAccessible: true,
clearto: 'white'
}
}).grow();
};
</script>